const vinculum = require('./index');
// 测试模式
vinculum.set('debug',true);

// 上下文
// vinculum.set('context','vinculum');

// 动作require白名单
// vinculum.set('actionContextWhiteList',['fs']);

// session存储方式local、redis
vinculum.set('sessionCache','local');
// vinculum.set('sessionCache','redis');

// session存储方式为redis时配置信息
// vinculum.set('redisOptions',{"port":6379,"host":"127.0.0.1"});

// 设置后台管理员信息
vinculum.set('administrator',{
  name:'root'
  ,password:vinculum.md5('111111')
  ,id:'id'
});

// 设置CDN加速地址
// vinculum.set('remoteResourcePath','//cdn.bootcss.com/');

// cookie名称
vinculum.set('cookieName','VINCULUMSESSIONID');

// 后台数据库配置信息
vinculum.set('serverdb',{
    "type":"mysql"
      ,"host":"127.0.0.1"
      ,"user":"root"
      ,"password":"test"
      ,"port":"3306"
      ,"database":"vinculumdb"
});

// 监听端口
vinculum.start(3000);